﻿using System;
using System.Windows.Forms;


namespace IClient
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main( )
        {
            Application.EnableVisualStyles( );
            Application.SetCompatibleTextRenderingDefault( false );


            globalData.load( );

            var login = new Login( );
            login.ShowDialog( );
            if ( login.DialogResult == DialogResult.OK )
            {
                login.Dispose( );
                Application.Run( new mainWindow( ) );
            }
            else if ( login.DialogResult == DialogResult.Cancel )
            {
                login.Dispose( );
                return;
            }
        }
    }
}
